#ifndef MYMUSIC_H
#define MYMUSIC_H

#include <QWidget>
#include <QMouseEvent>


QT_BEGIN_NAMESPACE
namespace Ui { class MyMusic; }
QT_END_NAMESPACE

class MyMusic : public QWidget
{
    Q_OBJECT

public:
    MyMusic(QWidget *parent = nullptr);
    ~MyMusic();
    void initUI();

protected:
     // 重写QWidget类的⿏标单击和⿏标滚轮事件
     void mousePressEvent(QMouseEvent *event)override;
     void mouseMoveEvent(QMouseEvent* event)override;
     // 记录光标相对于窗⼝标题栏的相对距离
     QPoint dragPosition;

private slots:
     void on_quit_clicked();

private:
    Ui::MyMusic *ui;
};
#endif // MYMUSIC_H
